package com.wipz.eoa.iphone.myworkmanagent.enterprise;

import java.util.Map;

import com.wipz.eoa.iphone.BaseServiceImpl;
import com.wipz.eoa.iphone.IBaseService;
import com.wipz.eoa.iphone.util.DataUtil;

public  class EnterpriseServiceImpl extends BaseServiceImpl implements IEnterpriseService{

	public Object detail(Map map) {
		Map m =	(Map) super.queryOne("enterprise.queryById",map);
		String contents = (String) m.get("CONTENTS");
		
		 String img = DataUtil.getImgStr(contents);
		 m.put("IMG", img);
		 
		 contents = DataUtil.filterImg(contents);
		 m.put("CONTENTS", contents);
		 return m;
	}
	public void insertEnterprise(Map map) {
		getBaseDao().insert("enterprise.insert", map);
		
	}
	public void updateEnterprise(Map map) {
		getBaseDao().insert("enterprise.update", map);
		
	}
//	@Override
//	public void deleteEnterrise(String  id) {
//		getBaseDao().delete("enterprise.delete", id);
//		
//	}

}
